{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}
{capture assign=agora_config_o_subforums_cols}2{/capture}{* Numbers of columns *}
{capture assign=colsCount}1{/capture}
{capture assign=forumItems}{$forum.subforums|@count}{/capture}

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="ag_subForums">
	<tr>
		<th class="ag_subForums" colspan="{$agora_config_o_subforums_cols}" scope="col">##Subforums##</th>
	</tr>
	{foreach name=forumname from=$forum.subforums item=subforum key=forum_id}
	{if $colsCount == 1}
	<tr>
	{/if}
		<td class="ag_subForums" width="{math|round:"0" equation="100 / x" x=$agora_config_o_subforums_cols}%">
		
		{* joopport added *}
			{if $subforum.forum_type}
			<div style="color:orange; font-size:xx-small">*</div>
			{/if}
		{* end joopport *}

			<img src="{image src=subforum.png}" alt="{$subforum.forum_name}" />
			<a href="{url task=forum id=$subforum.id}">{$subforum.forum_name}</a>
		</td>
	{if $forumItems-- == 1 || $colsCount++ == $agora_config_o_subforums_cols}
	</tr>
	{capture assign=colsCount}1{/capture}
	{/if}
	{/foreach}
</table>